import Ajax from '@/util/Ajax'

const Api = {
  getMemberChargeCategoryList (params) {
    return Ajax.post('/api/memberCharge/category/list', params)
  },
  saveMemberChargeCategory (params) {
    return Ajax.post('/api/memberCharge/category/save', params)
  },
  getMemberChargeCategory (params) {
    return Ajax.post('/api/memberCharge/category/get', params)
  },
  setMemberChargeCategoryStatus (params) {
    return Ajax.post('/api/memberCharge/category/updateStatus', params)
  },
  setCategoryUpAndDown (params) {
    return Ajax.post('/api/memberCharge/category/upAndDown', params)
  },
  deleteCategory (params) {
    return Ajax.post('/api/memberCharge/category/delete', params)
  },
  getMemberChargeSubCategoryList (params) {
    return Ajax.post('/api/memberCharge/subCategory/list', params)
  },
  saveMemberChargeSubCategory (params) {
    return Ajax.post('/api/memberCharge/subCategory/save', params)
  },
  getMemberChargeSubCategory (params) {
    return Ajax.post('/api/memberCharge/subCategory/get', params)
  },
  setMemberChargeSubCategoryStatus (params) {
    return Ajax.post('/api/memberCharge/subCategory/updateStatus', params)
  },
  setSubCategoryUpAndDown (params) {
    return Ajax.post('/api/memberCharge/subCategory/upAndDown', params)
  },
  deleteSubCategory (params) {
    return Ajax.post('/api/memberCharge/subCategory/delete', params)
  },
  getMemberChargeTpList (params) {
    return Ajax.post('/api/memberCharge/tp/list', params)
  },
  saveMemberChargeTp (params) {
    return Ajax.post('/api/memberCharge/tp/save', params)
  },
  getMemberChargeTp (params) {
    return Ajax.post('/api/memberCharge/tp/get', params)
  },
  setMemberChargeTpStatus (params) {
    return Ajax.post('/api/memberCharge/tp/updateStatus', params)
  },
  setTpUpAndDown (params) {
    return Ajax.post('/api/memberCharge/tp/upAndDown', params)
  },
  deleteTp (params) {
    return Ajax.post('/api/memberCharge/tp/delete', params)
  },
  getMemberChargeSkuList (params) {
    return Ajax.post('/api/memberCharge/sku/list', params)
  },
  saveMemberChargeSku (params) {
    return Ajax.post('/api/memberCharge/sku/save', params)
  },
  getMemberChargeSku (params) {
    return Ajax.post('/api/memberCharge/sku/get', params)
  },
  setMemberChargeSkuStatus (params) {
    return Ajax.post('/api/memberCharge/sku/updateStatus', params)
  },
  setSkuUpAndDown (params) {
    return Ajax.post('/api/memberCharge/sku/upAndDown', params)
  },
  deleteSku (params) {
    return Ajax.post('/api/memberCharge/sku/delete', params)
  },
  getMemberChargeOrderList (params) {
    return Ajax.post('/api/order/memberCharge/list', params)
  },
  getMemberChargeOrder (params) {
    return Ajax.post('/api/order/memberCharge/get', params)
  },
  setMemberChargeOrderSmsCode (params) {
    return Ajax.post('/api/order/memberCharge/smsCode/save', params)
  },
  setMemberChargeOrderFinish (params) {
    return Ajax.post('/api/order/memberCharge/finish', params)
  },
  setMemberChargeOrderSmsNotify (params) {
    return Ajax.post('/api/order/memberCharge/sendSmsNotify', params)
  },
  jiedan(data ={}){
    return Ajax.post('api/order/movie/jiedan', data);
  }
}
export default Api
